package com.oracle.sbdb.util;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class MD5Util {
	public static String getMD5(String password){
		byte[] res = null;
		try {
			MessageDigest md5 = MessageDigest.getInstance("MD5");
			res = md5.digest(password.getBytes());
		} catch (NoSuchAlgorithmException e) {
			e.printStackTrace();
		}
		return String.valueOf(res);
	}
}
